package bpmn.structure;

public class SubProcess extends ProcessElem
{
	private String processFileRef;

	{
		type = BPMNElemType.SubProcess;
	}

	public SubProcess(String id)
	{
		super(id);
	}

	public String getProcessFileRef()
	{
		return processFileRef;
	}

	public void setProcessFileRef(String processRef)
	{
		this.processFileRef = processRef;
	}

	public void addRef(String ref, boolean isIncoming)
	{
		if (isIncoming)
			incomingRefs.add(ref);
		else
			outgoingRefs.add(ref);
	}
}
